package com.eaoa.vo.pub.base;

import java.io.Serializable;

import com.eaoa.vo.pub.PubOperationlog;


/**
 * This is an object that contains data related to the PUB_OPERATIONLOG table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="PUB_OPERATIONLOG"
 */

public abstract class BasePubOperationlog  implements Serializable {

	public static String REF = "PubOperationlog";
	public static String PROP_OPERATIONCONTENT = "operationcontent";
	public static String PROP_CLIENTNAME = "clientname";
	public static String PROP_USERID = "userid";
	public static String PROP_CLIENTIP = "clientip";
	public static String PROP_OPERATIONTYPE = "operationtype";
	public static String PROP_OPNO = "opno";
	public static String PROP_USERNAME = "username";
	public static String PROP_OPERATIONDATE = "operationdate";
	public static String PROP_OPERATIONMODULE = "operationmodule";


	// constructors
	public BasePubOperationlog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasePubOperationlog (java.lang.Long opno) {
		this.setOpno(opno);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long opno;

	// fields
	private java.lang.String userid;
	private java.lang.String username;
	private java.util.Date operationdate;
	private java.lang.String clientip;
	private java.lang.String clientname;
	private java.lang.String operationtype;
	private java.lang.String operationmodule;
	private java.lang.String operationcontent;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="sequence"
     *  column="OPNO"
     */
	public java.lang.Long getOpno () {
		return opno;
	}

	/**
	 * Set the unique identifier of this class
	 * @param opno the new ID
	 */
	public void setOpno (java.lang.Long opno) {
		this.opno = opno;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: USERNAME
	 */
	public java.lang.String getUsername () {
		return username;
	}

	/**
	 * Set the value related to the column: USERNAME
	 * @param username the USERNAME value
	 */
	public void setUsername (java.lang.String username) {
		this.username = username;
	}



	/**
	 * Return the value associated with the column: OPERATIONDATE
	 */
	public java.util.Date getOperationdate () {
		return operationdate;
	}

	/**
	 * Set the value related to the column: OPERATIONDATE
	 * @param operationdate the OPERATIONDATE value
	 */
	public void setOperationdate (java.util.Date operationdate) {
		this.operationdate = operationdate;
	}



	/**
	 * Return the value associated with the column: CLIENTIP
	 */
	public java.lang.String getClientip () {
		return clientip;
	}

	/**
	 * Set the value related to the column: CLIENTIP
	 * @param clientip the CLIENTIP value
	 */
	public void setClientip (java.lang.String clientip) {
		this.clientip = clientip;
	}



	/**
	 * Return the value associated with the column: CLIENTNAME
	 */
	public java.lang.String getClientname () {
		return clientname;
	}

	/**
	 * Set the value related to the column: CLIENTNAME
	 * @param clientname the CLIENTNAME value
	 */
	public void setClientname (java.lang.String clientname) {
		this.clientname = clientname;
	}



	/**
	 * Return the value associated with the column: OPERATIONTYPE
	 */
	public java.lang.String getOperationtype () {
		return operationtype;
	}

	/**
	 * Set the value related to the column: OPERATIONTYPE
	 * @param operationtype the OPERATIONTYPE value
	 */
	public void setOperationtype (java.lang.String operationtype) {
		this.operationtype = operationtype;
	}



	/**
	 * Return the value associated with the column: OPERATIONMODULE
	 */
	public java.lang.String getOperationmodule () {
		return operationmodule;
	}

	/**
	 * Set the value related to the column: OPERATIONMODULE
	 * @param operationmodule the OPERATIONMODULE value
	 */
	public void setOperationmodule (java.lang.String operationmodule) {
		this.operationmodule = operationmodule;
	}



	/**
	 * Return the value associated with the column: OPERATIONCONTENT
	 */
	public java.lang.String getOperationcontent () {
		return operationcontent;
	}

	/**
	 * Set the value related to the column: OPERATIONCONTENT
	 * @param operationcontent the OPERATIONCONTENT value
	 */
	public void setOperationcontent (java.lang.String operationcontent) {
		this.operationcontent = operationcontent;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof PubOperationlog)) return false;
		else {
			PubOperationlog pubOperationlog = (PubOperationlog) obj;
			if (null == this.getOpno() || null == pubOperationlog.getOpno()) return false;
			else return (this.getOpno().equals(pubOperationlog.getOpno()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getOpno()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getOpno().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}